package cn.mxh.pethspt.dao;

import cn.mxh.pethspt.entity.Combination;
import cn.mxh.pethspt.entity.Ding;

import java.util.List;

public interface CombinationDao {

    /**
     * 添加套餐
     * @return
     */
    public int add(Combination combination) throws Exception;

    /**
     * 修改套餐
     * @param combination
     * @return
     */
    public int update(Combination combination) throws Exception;

    /**
     * 根据id删除套餐
     * @param
     * @return
     * @throws Exception
     */
    public int delete(Integer coId) throws Exception;

    /**
     * 查询所有套餐
     * @return
     */
    public List<Combination> getAll() throws Exception;

    /**
     * 根据id查询套餐价格
     * @param
     * @return
     */
    public Combination getCombinationBycoId(Integer coId) throws Exception;



}
